<div class="panelLeft">
			{$categoriesAndBrands}
			<br />
			{capture name=formUrl}
				{url label=extSearch query=$subCategoryKey page=1 t=10 v=a o=_}
			{/capture}
			
			{capture name=formExtFields}
			{/capture}
		
				
			{include file='partial/Shared/_browseOptions.tpl' formUrl=$smarty.capture.formUrl formExtFields=$smarty.capture.formExtFields}
			
			<br/>
			
			{include file='partial/Shared/_ratingBrowseOptions.tpl' formUrl=$smarty.capture.formUrl formExtFields=$smarty.capture.formExtFields}
			
			<br/>
			
			{include file='partial/Shared/_playersChoice.tpl' formUrl=$smarty.capture.formUrl formExtFields=$smarty.capture.formExtFields}
			
			
			
			
		<!-- panelLeft -->
		</div>
		
		<div class="panelRight">
			
			<div class="sortBar">
				<ul>
					<li class="button"><a class="closed" title="Expand"></a></li>
					<li class="sort">sort by:</li>
					<li>{ftab type='sort' label='popularity' tid='products_list' urlLabel='extSearch' o='popularity'}</li>
					<li>{ftab type='sort' label='rate' tid='products_list' urlLabel='extSearch' o='rate'}</li>
					<li>{ftab type='sort' label='product name' tid='products_list' urlLabel='extSearch' o='name'}</li>
					<li>{ftab type='sort' label='brand' tid='products_list' urlLabel='extSearch' o='brand'}</li>
					
					<li class="switch"><a href="?switch" title="switch to box view" class="boxView">switch to box view</a></li>
				</ul>
			</div>
			<div class="sortBarExt hidden">
				<p>filters:</p>
				<ul>
					<li>no filters</li>
				</ul>
				<div class="clearBoth"></div>
			</div>
			
			<div class="pages">
				{if $productsList|@count > 0}
				{ftab type='pagination' tid='products_list' all_count=$c urlLabel='extSearch'}
				{ftab type='on_page' tid='products_list' urlLabel='extSearch'}
				{/if}
			</div>
			
			<h2 class="searchResultsFor">{'Search results for:'|t} {$searchPhrase}</h2>
			<div class="clearBoth"></div>
			
			<!-- pages -->
			{foreach from=$productsList item=product name=foo}
			{assign var=prodDesc value=$product->getProductDescription()}
			{assign var=subCategoryId value=$product->getIdCategory()}
			{assign var=subCategory value=$allCategories.children[$subCategoryId]}
			{assign var=categoryId value=$subCategory->getParent()}
			{assign var=category value=$allCategories.parents[$categoryId]}
			
			

			
			
			<div class="{if $listType eq 'list'}pRacqetV{else}pRacqetB{if $smarty.foreach.foo.iteration%2 eq 0} pRacqetBL{/if}{/if}">
				
				<h2><a href="{url label=productView categoryKey=$category->getSlug() subCategoryKey=$subCategory->getSlug() productKey=$product->getSlug()}" title="{$prodDesc->getName()}">{$prodDesc->getName()}</a></h2>
				<div class="thumb"><a href="{url label=productView categoryKey=$category->getSlug() subCategoryKey=$subCategory->getSlug() productKey=$product->getSlug()}" title="{$prodDesc->getName()}">
						{if $listType eq 'list'}
						<img src="{$urlStatic}/{image src=$product->getMainImage() w=105 h=105}" alt="{$prodDesc->getName()}"/>
						{else}
						<img src="{$urlStatic}/{image src=$product->getMainImage() w=205 h=205}" alt="{$prodDesc->getName()}"/>
						{/if}
						</a></div>
				{assign var=manufacturer value=$product->getManufacturer()}
				<div class="logo"><a href="#" title="Company Name"><img src="{$urlStatic}/{image src=$manufacturer->getImage() w=201 h=90 c=true}" alt="{$manufacturer->getName()}"/></a></div>
<script type="text/javascript">
						var comparelock{$product->getId()} = false;
						var compareLink{$product->getId()} = '{url label=productAddToCompare productKey=$product->getSlug() subCategoryKey=$subCategory->getSlug() categoryKey=$category->getSlug()}';
		{if $product->getAlreadyInCompare()} comparelock{$product->getId()} = true; {/if}
						{literal}
						
				$(function() {
					

					
					$('#add2compare{/literal}{$product->getId()}{literal}').click(function() {
						
						if (comparelock{/literal}{$product->getId()}{literal} == true) {
						compareLink{/literal}{$product->getId()} = '{url label=emptyMyList}{literal}' ;
					}
						
						$('#ajaxLoader').show();

						$.post(compareLink{/literal}{$product->getId()}{literal},
						{productKey:"{/literal}{$product->getSlug()}{literal}"},
						function(response) {
							eval(response);
							if(comparelock{/literal}{$product->getId()}{literal} != true) {
								$('#baloonAddToCompare').fadeIn('slow');
								$('#ajaxLoader').hide();
								$('#add2compare{/literal}{$product->getId()}{literal}').html('{/literal}{'already added'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('title','{/literal}{'already added'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('class','removeCompare');
								comparelock{/literal}{$product->getId()}{literal} = true;
								compareLink{/literal}{$product->getId()} = '{url label=emptyMyList}{literal}' ;
							} else {
								//$('#baloonAddToCompare').fadeIn('slow');
								$('#ajaxLoader').hide();
								$('#add2compare{/literal}{$product->getId()}{literal}').html('{/literal}{'add to compare'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('title','{/literal}{'add to compare'|t}{literal}');
								$('#add2compare{/literal}{$product->getId()}{literal}').attr('class','add2compare');
								comparelock{/literal}{$product->getId()}{literal} = false;
								
								compareLink{/literal}{$product->getId()} = '{url label=productAddToCompare productKey=$product->getSlug() subCategoryKey=$subCategory->getSlug() categoryKey=$category->getSlug()}{literal}';
							}
						});
						setTimeout("$('#baloonAddToCompare').fadeOut('slow');", 4000);
						return false;

					});
				});{/literal}
			</script>
				<ul class="links">
					<li><a rel="nofollow" title="{'add to compare'|t}" id="add2compare{$product->getId()}" class="add2compare">{'add to compare'|t}</a></li>
					<li><a title="{'compare prices'|t}" class="comparePrices">{'compare prices'|t}</a></li>
					<li><a href="{if $_userLoggedIn}{url label=productPdf  categoryKey=$category->getSlug() subCategoryKey=$subCategory->getSlug() productKey=$product->getSlug()} {else}{url label=logIn}{/if}" title="{'PDF'|t}"  class="{if $_userLoggedIn}pdf{else}pdfInactive{/if}" >{'PDF'|t}</a></li>
				</ul>
				<div class="popRatePanel">
					<p class="popularity">{'popularity'|t}<span>{$product->getPopularity()}</span></p>
					<p class="rate">{'rate'|t}<span>{$product->getRate()}</span></p>
				</div>
				<p class="group">{'product group'|t}: <a href="{url label=mainCategoryView categoryKey=$category->getSlug() subCategoryKey=$subCategory->getSlug()}" title="{$subCategory->getName()}">{$subCategory->getName()}</a></p>
				{if $product->getRank()!='0'}<div class="rank">rank<span>{$product->getRank()}</span></div>{/if}
				{foreach from=$product->productRanking item=rank}
					{if $rank->productRankingType->getId()==1}
					<a class="scVip"  title="{'VIP'|t}"></a>
					{elseif $rank->productRankingType->getId()==2}
					<a class="scTopR" title="{'Top Rated'|t}"></a>
					{elseif $rank->productRankingType->getId()==3}
					<a class="scTopP" title="{'Top Popular'|t}"></a>
					{/if}
				{/foreach}
				<div class="extendedRanks">
				{foreach from=$product->productVotes item=vote}
				<div class="label">{$vote->productVotesType->getName()|t}</div>
				<div class="ruler"><img src="{$urlStatic}/image/Strona/backgroundRulerValue.gif" width="{$vote->getValue()}" alt="bar"/></div>
				{/foreach}
				</div>
			</div>	
			{foreachelse}
				{if $emptyString}
				<b>{'Search text should be 4 or more characters'|t}</b>
				{else}
				<b>{'Products list is empty'|t}</b>
				{/if}
			{/foreach}
			<div class="clearBoth"></div>

			<div class="pages">
				{if $productsList|@count > 0}
				{ftab type='pagination' tid='products_list' all_count=$c urlLabel='extSearch'}
				{ftab type='on_page' tid='products_list' urlLabel='extSearch'}
				{/if}
			</div>
		
		
		<!-- panelRight -->
		</div>